package com.example.myapplication.hilt

import android.content.Intent
import android.os.Bundle
import androidx.appcompat.app.AppCompatActivity
import androidx.databinding.DataBindingUtil
import androidx.databinding.ViewDataBinding
import com.example.myapplication.R
import com.example.myapplication.rxjava.Rxjava2Activity
import com.example.myapplication.rxjava.Rxjava2Activity2
import com.orhanobut.logger.Logger
import dagger.hilt.android.AndroidEntryPoint
import retrofit2.Retrofit
import javax.inject.Inject

/**
 * 类描述:
 * 创建人:   tangchao$
 * 创建时间: 2021/8/9$ 8:26 AM$
 * 联系方式: 419704299@qq.com
 * 修改人:   tangchao$
 * 修改时间: 2021/8/9$ 8:26 AM$
 * 修改备注:  [说明本次修改内容]
 */
@AndroidEntryPoint
class ActivityHilt : AppCompatActivity() {
    @JvmField
    @Inject
    var retrofit: Retrofit? = null

//    @JvmField
//    @Inject
//    var truck: Truck? = null
////
//    @JvmField
//    @Inject
//    var truck2: Truck2? = null
//    @JvmField
//    @BindGasEngine
//    @Inject
//    var gasEngine = GasEngine()

//    @BindElectricEngine
//    @Inject
//    var electricEngine= ElectricEngine()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
        DataBindingUtil.setContentView<ViewDataBinding>(this, R.layout.hiltactivity)
//        Logger.d("ActivityHilt===onCreate:gasEngine " + gasEngine.hashCode())
//        Logger.d("ActivityHilt===onCreate:truck " + truck.hashCode() + "  " + truck!!.get1())
//        Logger.d("ActivityHilt===onCreate:truck2 " + truck2.hashCode())
        Intent(this, Rxjava2Activity2::class.java).apply {
            startActivity(this)
        }

    }
}